import 'package:flutter/material.dart';

class CollectMoney extends StatelessWidget {
  final count;
  const CollectMoney({this.count = 500,Key key}) : super(key: key);

  pop(context) {
    Navigator.of(context).pop(true);
  }
  @override
  Widget build(BuildContext context) {
    Future.delayed(Duration(seconds: 2), () {
      this.pop(context);
    });
    return GestureDetector(
      child: Container(
        alignment: Alignment.center,
        color: Colors.white,
        // margin: EdgeInsets.only(left: 40,right: 40,top: 100),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: <Widget>[
            Container(
              margin: EdgeInsets.only(bottom: 40),
              child: Image.asset('assets/images/money.png',),
            ),
            Row(
              crossAxisAlignment: CrossAxisAlignment.start,
              mainAxisAlignment: MainAxisAlignment.start,
              children: [
                SizedBox(width: 10,),
                Text("${this.count} Pesos has been deposited\nto your wallet.",
                  textAlign: TextAlign.left,
                  style: TextStyle(color: Color(0xFF041D57), fontSize: 14,fontFamily: 'Avenir Next LT Pro',fontWeight: FontWeight.bold,),
                ),
              ],
            ),
            SizedBox(height: 30,),
          ],
        ),
      ),
    );
  }
}